<template>
  <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pagination.current"
      :page-sizes="[5,10,15,20,25]"
      :page-size="pagination.pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="pagination.total">
    </el-pagination>
</template>

<script>
export default {
    props:['pagination'],
    methods:{
        handleSizeChange(pageSize){
            this.$emit('show',{current:this.pagination.current,pageSize});
        },
        handleCurrentChange(current){
            this.$emit('show',{current,pageSize:this.pagination.pageSize});
        }
    }
}
</script>

<style>

</style>